package test1;

import java.util.ArrayList;
import java.util.Collection;

public class Test1 {
    public static void main(String[] args) {
        Collection<String> collection = new ArrayList<>();
        collection.add("h");
        collection.add("e");
        collection.add("l");
        collection.add("l");
        collection.add("o");
        for (String str : collection) {
            System.out.print(str);
        }
        System.out.println();
        System.out.println(collection.size());
        collection.clear();
        System.out.println(collection.size());
    }
}
